﻿<?php
if(!defined('IN_PHPSCUP'))exit('hacking'); 

class IntegralApp extends BaseApp
{
    var $type = 'integral';
    function index()
    {
		$TB_integral = &$this->_model('integral');  
		
		$data = $TB_integral->personlshow($GLOBALS['SCup']->SCup_user_msg['user_id']);
				
        $this->assign('lw_data', $data['data']);		
		$this->assign('lw_page', $data['page']);
		require(ROOT_PATH . '/lib/nav.lib.php');
		
		$nav = new Nav($GLOBALS['SCup']->SCup_nav_file);
		
        $this->assign('navigation', $nav->_get_nav());	
		if(isset($GLOBALS['SCup']->SCup_user_msg['data']['user_name']))
		{
        $this->assign('username',$GLOBALS['SCup']->SCup_user_msg['data']['user_name']);			
		}
        $this->assign('view_charset', VIEW_CHARSET);	
        $this->assign('page_title', SITE_TITLE);
        $this->assign('page_description', SITE_DESCRIPTION);
        $this->assign('page_keywords', SITE_KEYWORDS);	
		$this->assign('bg_pic_url',$GLOBALS['SCup']->SCup_name.'/view/'.VIEW_TYPE .'/style/'.CSS_TYPE.'/');			
        $this->assign('login_icon', $GLOBALS['SCup']->SCup_user_checking);
        $this->assign('langtype', trim($GLOBALS['Lang']->_lang_tp));
	    $this->assign('site_url',SITE_URL);		
        $this->display('user/integral_list.view.html');

    }

	
}


?>